package com.lhl.security.jwt.domain.entity;

import io.swagger.annotations.Api;

/**
 * @className: com.lhl.security.jwt.domain.entity.Role
 * @description: TODO 类描述
 * @author: king
 * @date: 2020-11-18
 **/
@Api(tags = "Role", produces = "")
public enum Role {
    //管理员
    admin("admin"),
    //普通用户
    user("user");

    //角色名称
    String role;

    Role(String role){
        this.role = role;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return this.role;
    }
}
